package com.woniuxy.goods.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.goods.entity.Goods;
import com.woniuxy.goods.vo.BuyGoodsVo;
import org.apache.ibatis.annotations.Param;

public interface GoodsService {
    PageInfo<Goods> findAll(Integer currentPage, Integer pageSize, String model);

    boolean add(Goods goods);

    boolean edit(Goods goods);

    boolean delete(Integer id);

    boolean buy(BuyGoodsVo buyGoodsVo);

    PageInfo<BuyGoodsVo> all(Integer currentPage, Integer pageSize, String name);

    boolean editState(Integer id);


}
